<?php

namespace app\api\model;

use app\common\exception\BaseException;
use app\common\model\ActivitySign as BaseModel;

/**
 * 报名模型
 * Class ActivitySign
 * @package app\api\model
 */
class ActivitySign extends BaseModel
{
    /**
     * 追加字段
     * @var array
     */
    protected $append = [
        'view_time'
    ];

    /**
     * 隐藏字段
     * @var array
     */
    protected $hidden = [
        'is_delete',
        'wxapp_id'
    ];

   
    public function getViewTimeAttr($value, $data)
    {
        return date('Y-m-d', $data['create_time']);
    }


}